<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/EAppointments.BMS.Services.Contracts" xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/EAppointments.BMS.Services.Contracts" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://localhost:24444/EAppointments.BMS.Host/ProviderService.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
  <xs:complexType name="ProviderSearchCriteria">
    <xs:sequence>
      <xs:element minOccurs="0" name="Id" type="ser:guid" />
      <xs:element minOccurs="0" name="SpecialtyId" type="ser:guid" />
      <xs:element minOccurs="0" name="ClinicTypesId" type="ser:guid" />
      <xs:element minOccurs="0" name="WithinMiles" type="xs:double" />
      <xs:element minOccurs="0" name="ZipCode" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="KeyWords" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ProviderSearchCriteria" nillable="true" type="tns:ProviderSearchCriteria" />
  <xs:complexType name="ProviderCollection">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Provider" nillable="true" type="tns:Provider" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ProviderCollection" nillable="true" type="tns:ProviderCollection" />
  <xs:complexType name="Provider">
    <xs:sequence>
      <xs:element name="Id" type="ser:guid" />
      <xs:element name="Name" nillable="true" type="xs:string" />
      <xs:element name="Location" nillable="true" type="xs:string" />
      <xs:element name="Organization" nillable="true" type="xs:string" />
      <xs:element name="Email" nillable="true" type="xs:string" />
      <xs:element name="Latitude" type="xs:double" />
      <xs:element name="Longitude" type="xs:double" />
      <xs:element name="ConditionsTreated" nillable="true" type="xs:string" />
      <xs:element name="ProceduresPerformed" nillable="true" type="xs:string" />
      <xs:element name="Exclusions" nillable="true" type="xs:string" />
      <xs:element name="AlternativeServices" nillable="true" type="xs:string" />
      <xs:element name="Proximity" type="xs:double" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Provider" nillable="true" type="tns:Provider" />
  <xs:complexType name="SystemFault">
    <xs:sequence>
      <xs:element minOccurs="0" name="Message" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Id" type="ser:guid" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SystemFault" nillable="true" type="tns:SystemFault" />
  <xs:complexType name="ProviderServiceFault">
    <xs:sequence>
      <xs:element minOccurs="0" name="Message" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Id" type="ser:guid" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ProviderServiceFault" nillable="true" type="tns:ProviderServiceFault" />
  <xs:complexType name="SlotSearchCriteria">
    <xs:sequence>
      <xs:element minOccurs="0" name="Id" nillable="true" type="ser:guid" />
      <xs:element minOccurs="0" name="ProviderId" nillable="true" type="ser:guid" />
      <xs:element minOccurs="0" name="SpecialtyId" nillable="true" type="ser:guid" />
      <xs:element minOccurs="0" name="ClinicTypeId" nillable="true" type="ser:guid" />
      <xs:element minOccurs="0" name="StartDateTime" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="EndDateTime" nillable="true" type="xs:dateTime" />
      <xs:element minOccurs="0" name="WeekDays" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Status" nillable="true" type="xs:int" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SlotSearchCriteria" nillable="true" type="tns:SlotSearchCriteria" />
  <xs:complexType name="SlotCollection">
    <xs:sequence>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="Slot" nillable="true" type="tns:Slot" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="SlotCollection" nillable="true" type="tns:SlotCollection" />
  <xs:complexType name="Slot">
    <xs:sequence>
      <xs:element name="Id" type="ser:guid" />
      <xs:element minOccurs="0" name="Provider" nillable="true" type="tns:Provider" />
      <xs:element minOccurs="0" name="ClinicType" nillable="true" type="tns:ClinicType" />
      <xs:element minOccurs="0" name="StartDateTime" type="xs:dateTime" />
      <xs:element minOccurs="0" name="EndDateTime" type="xs:dateTime" />
      <xs:element minOccurs="0" name="UBRN" nillable="true" type="xs:int" />
      <xs:element minOccurs="0" name="Status" type="tns:SlotStatus" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Slot" nillable="true" type="tns:Slot" />
  <xs:complexType name="ClinicType">
    <xs:sequence>
      <xs:element name="Id" type="ser:guid" />
      <xs:element name="Specialty" nillable="true" type="tns:Specialty" />
      <xs:element name="Name" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ClinicType" nillable="true" type="tns:ClinicType" />
  <xs:complexType name="Specialty">
    <xs:sequence>
      <xs:element name="Id" type="ser:guid" />
      <xs:element name="Name" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="Specialty" nillable="true" type="tns:Specialty" />
  <xs:simpleType name="SlotStatus">
    <xs:restriction base="xs:string">
      <xs:enumeration value="All" />
      <xs:enumeration value="Available" />
      <xs:enumeration value="Booked" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="SlotStatus" nillable="true" type="tns:SlotStatus" />
</xs:schema>